package com.source.multithread.threadd;



/**
 * @Author wengqy
 * @Date 2020/12/25
 */
public class ThreadDemoo {
    public static void main(String[] args) {
        Cherry cherry  = new Cherry();
        new Thread(cherry,"AA").start();



        System.out.println(Thread.currentThread().getName()+"MAIN"); // mainMAIN
    }
}


class Cherry implements Runnable{

    @Override
    public void run() {
        System.out.println("sub....");  // sub....
        System.out.println(Thread.currentThread());  // Thread[AA,5,main]
        System.out.println(this); // com.source.multithread.threadd.Cherry@43008f8f
        System.out.println(Thread.currentThread().equals(this)); // false
    }
}